home *** CD-ROM | disk | FTP | other *** search
- package
- {
- import mx.core.IFlexModuleFactory;
- import mx.skins.halo.RadioButtonIcon;
- import mx.styles.CSSStyleDeclaration;
- import mx.styles.StyleManager;
-
- public class _RadioButtonStyle
- {
- public function _RadioButtonStyle()
- {
- super();
- }
-
- public static function init(param1:IFlexModuleFactory) : void
- {
- var style:CSSStyleDeclaration = null;
- var fbs:IFlexModuleFactory = param1;
- style = StyleManager.getStyleDeclaration("RadioButton");
- if(!style)
- {
- style = new CSSStyleDeclaration();
- StyleManager.setStyleDeclaration("RadioButton",style,false);
- }
- if(style.defaultFactory == null)
- {
- style.defaultFactory = function():void
- {
- this.selectedDisabledIcon = RadioButtonIcon;
- this.fontWeight = "normal";
- this.selectedOverIcon = RadioButtonIcon;
- this.upSkin = null;
- this.overIcon = RadioButtonIcon;
- this.overSkin = null;
- this.selectedDisabledSkin = null;
- this.selectedDownIcon = RadioButtonIcon;
- this.disabledIcon = RadioButtonIcon;
- this.textAlign = "left";
- this.cornerRadius = 7;
- this.selectedDownSkin = null;
- this.selectedUpSkin = null;
- this.selectedOverSkin = null;
- this.upIcon = RadioButtonIcon;
- this.downSkin = null;
- this.selectedUpIcon = RadioButtonIcon;
- this.disabledSkin = null;
- this.downIcon = RadioButtonIcon;
- };
- }
- }
- }
- }
-
-